package cn.zhf.shop.service;

import cn.zhf.shop.entity.Ad;
import cn.zhf.shop.entity.Message;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AdService {


    Message deleteByPrimaryKey(Integer adId);

    Message insert(Ad record);

    Message<Ad> selectByPrimaryKey(Integer adId);

    Message updateByPrimaryKey(Ad record);

    Message<List<Ad>> selectAll();

    Message<List<Ad>> selectAllSelected();

    int insertSelective(Ad record);

    int updateByPrimaryKeySelective(Ad record);
}


